package tools.language;

import javax.swing.JDialog;
import javax.swing.JOptionPane;
import account.model.HelpListModel;

public class MentionChat {

	public static MentionChat instance;

	public static MentionChat getInstance() {
		if (instance == null) {
			instance = new MentionChat();
		}
		return instance;
	}

	public void errorList() {
		JOptionPane.showMessageDialog(null, "Geen melding geselecteerd", "Error", 
				JOptionPane.OK_CANCEL_OPTION);
	}
	
	public void errorTable() {
		JOptionPane.showMessageDialog(null, "Geen mededeling geselecteerd", "Error", 
				JOptionPane.OK_CANCEL_OPTION);
	}
	
	public void buttonSucces() {
		JOptionPane.showMessageDialog(null, "Hulpvraagknoppen bijgewerkt", "Succes",
				JOptionPane.OK_CANCEL_OPTION);
	}
	
	public void succesMelding() {

		//TODO MELDING AFMAKEN
		JOptionPane opt = new JOptionPane("Vraag verzonden naar docent", JOptionPane.INFORMATION_MESSAGE, JOptionPane.DEFAULT_OPTION, null, new Object[]{}); // geen knoppen tonen
		final JDialog dlg = opt.createDialog("Melding");

		new Thread(new Runnable()
		{
			public void run()
			{
				try
				{
					Thread.sleep(1000);
					dlg.dispose();

				}
				catch ( Throwable th )
				{

				}
			}
		}).start();
		dlg.setVisible(true);
	}

}
